/*
 * Project: Sudoku Hint Engine for Android
 * Copyright (C) 2010-2013 Emanuel Moecklin
 * 
 * Available under the terms of the Lesser General Public License (LGPL)
 */
package com.onegravity.sudoku.solver;

import java.util.Comparator;

import com.onegravity.sudoku.solver.core.Hint;

/**
 * The HintComparator is used to sort Hints.  
 * @author Emanuel Moecklin
 */
class HintComparator implements Comparator<Hint> {
	
	@Override
	public int compare(Hint hint1, Hint hint2) {
		// sort according to sortkey
		String sortKey1 = hint1.getSortKey();
		String sortKey2 = hint2.getSortKey();
		return sortKey1.compareTo(sortKey2);
	}

}